export default{
	
	BASEURI: 'http://localhost:8081/',
	ESURI: 'http://localhost:8081/api/',
	NOSIGNGETURL :'http://47.100.137.24:7300/mock/5f8d361ec2a4f90230d8aaa6/',
	
	/* 接口名称 */
	/* const index={
		getLunbo:'api/getlunbo'
	}	
	 */
	getLunbo:'api/getlunbo',
	getgoodlist:'api/getgoodlist',
	hotgoods:'api/hotgoods',
	datatest:'api/datatest',
	
	

	//由于箭头函数不绑定this， 它会捕获其所在（即定义的位置）上下文的this值， 作为自己的this值，


 	async noSignGet(endpoint)  {
	
		let fullurl = this.NOSIGNGETURL + endpoint;
		/* console.log(fullurl); */
		let [error,res] = await uni.request({
			url:fullurl,
			header: {
			'Accept': 'application/json',
			'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
			},
			method:'GET'

	});

	return res.data;
	
} ,

		async paramaGet(endpoint,data){
			let fullurl = this.NOSIGNGETURL + endpoint;
			let [error,res] = await uni.request({
					url:fullurl,
					data:data,
					header: {
					/* 'Accept': 'application/json', */
					'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
					},
					method:'GET'
			
			});
 			
 			return res.data.data;
		}

}



